package com.kingsoft.miot.bridge.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.kingsoft.miot.bridge.pojo.device.DeviceUris;

/**
 * 设备URI 配置
 * @author HUJIANQING
 *
 */
@Configuration
public class DeviceConfig {

	// 获取control_unit_id（房间） 下的所有设备
	@Value("${miot.device.uris.devices}")
	private String devices;
	
	@Bean
	public DeviceUris deviceUris() {
		DeviceUris deviceUri = new DeviceUris();
		deviceUri.setDevicesUri(devices);
		return deviceUri;
	}
}
